import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import Components from '@uni-helper/vite-plugin-uni-components'
import { NutResolver } from 'nutui-uniapp'
import UniLayouts from '@uni-helper/vite-plugin-uni-layouts'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    Components({
      deep: true,
      resolvers: [NutResolver()],
    }),
	UniLayouts(),
    uni(),
  ],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: '@import "nutui-uniapp/styles/variables.scss";',
      },
    },
  },
})
